# 指定 CMake 最低版本
cmake_minimum_required(VERSION 3.10)

project(Notify)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(DCMAKE_CXX_COMPILER "g++-9")
# 对于MSVC特别配置 
if(MSVC)
    add_compile_options(/utf-8)  # 强制UTF-8编码 
endif()

# 添加包含的头文件路径，子目录中不再需要添加
include_directories(mgnotify/include)
include_directories(json/include)

link_directories(${PROJECT_SOURCE_DIR}/)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)

 
# 添加选项控制 
option(BUILD_EXAMPLE6 "Build example14" OFF)  # 默认关闭 

add_subdirectory(mgnotify)
add_subdirectory(examples)
